package org.wz.complex.work.controller.auth.sysinfo;

import jakarta.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import org.wz.complex.work.bean.Keyvalue;
import org.wz.complex.work.bean.Pagi;
import org.wz.complex.work.bean.Res;
import org.wz.complex.work.controller.base.BaseController;
import org.wz.complex.work.entity.auth.sysinfo.SysinfoMicro;
import org.wz.complex.work.service.auth.sysinfo.SysinfoMicroService;

import java.util.List;


@RestController
@RequestMapping("/auth/sysinfo/micro")
public class SysinfoMicroController extends BaseController<SysinfoMicro, Object> {

    @Resource
    private SysinfoMicroService service;

    @GetMapping("/statistics")
    public Res statistics() throws Exception {
        List<Keyvalue> list = service.statistics(springProfilesActive);
        return Res.ok(list);
    }

}



